<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/Homepage/style.css">
<link href="/dqchat/Public/css/findpw/style.css" type="text/css" rel="stylesheet"></link>
<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<script>
$(function(){

  $(document).keypress(function(e) { 
  // 回车键事件 
   if(e.which == 13) { 
		$('#submit').trigger("click");
   } 
   })
  
  $('#submit').click(function(){
 
     ans1=($("#ans1").val());
     ans2= ($("#ans2").val());
	 if(ans1==""){
		alert('答案1不能为空');
		return false;
	 }else if(ans2==""){
		alert('答案2不能为空');
		return false;	 
	 }

     $.ajax({
             type: "POST",
             url: "<?php echo U('oper');?>",
			 data: {from:2,ans1:ans1,ans2:ans2},
			 dataType: "text",
             success: function(data){		 
					if(data==1){
						alert("问题1答案错误");					
					}else if(data==2){
						alert("问题2答案错误");
					}else if(data==3){
						window.location.href="<?php echo U('resetpsw');?>";
					}
						
			 }
			})	
 })
 })
</script>
</head>
<body>
	<div class="menu">
		<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<style>
.active a {background:#0094FF;color:#fff;}
</style>
<script>


$(function(){
	menu = <?php echo I('get.hmenu');?>;	
	if(menu){
	$('.home_bk').eq(menu).addClass('active');
	}
	$('.home_bk:eq(1)').click(function(){	
	$('.home_bk').removeClass('active');
	$(this).addClass('active');	
	})
})



</script>
	<div class="home_menu1">
		<div class="home_menu2" onclick="window.location.href='<?php echo U('Home/Index/index');?>'" style="cursor:pointer;width:80px;height:70px;background:url('/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png') no-repeat; _background:none;
						  _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png');"></div>
		<div class="home_menu3"><a href="<?php echo U('Home/Index/index');?>"><?php echo C('title');?></a></div>
		<div class="home_menu4">		  <ul>
			<li class="home_bk"><a href="<?php echo U('Home/Index/index?hmenu=0');?>">首页</a ></li>
			<li class="home_bk"><a href ="/dqchat/download/setup.exe">下载中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/rank?hmenu=2');?>">人气排行</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=3');?>">虚拟商城</a></li>
			<li class="home_bk"><a href="<?php echo U('User/index/index?hmenu=4');?>">个人中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=5');?>">加盟合作</a></li>		  </ul>
		</div>
		<div style="clear:both"></div>
	</div>

		<div class="menu1">
			<form  name="myform" id="myform"  method="POST">
				<p class="title">找回密码</p>
				<table class="pwpr_title1">
					<tr><td class="pwpr_title2" colspan=2>说明:请输入你原来的密码保护问题的答案！！！</td></tr>
					<tr><td class="pwpr_password">密保问题1:</td><td class="pwpr_password1"><?php echo ($dq1); ?></td></tr>
					<tr><td class="pwpr_password">密保答案1:</td><td class="pwpr_text"><input type="text" name="ans1" id="ans1"></td></tr>
					<tr><td class="pwpr_password">密保问题2:</td><td class="pwpr_password1"><?php echo ($dq2); ?></td></tr>
					<tr><td class="pwpr_password">密保答案2:</td><td class="pwpr_text"><input type="text" name="ans1" id="ans2"></td></tr>
					<tr><td></td><td class="pwpr_sure" ><div id="submit">确&nbsp&nbsp&nbsp&nbsp定</div></td></tr>
				</table>
			</form>
		</div>
			<div style="clear:both"></div>
	<div class="home_logo"><?php echo C('copyright');?></div>


	</div>
</body>
</html>